Loading AI tools
HTTP回應狀態碼 来自维基百科,自由的百科全书
HTTP 303 See Other ,自 RFC 2616(HTTP 1.1)起,用于在收到HTTP POST请求之后,进行URL重定向的操作。[1]
虽然RFC 1945和RFC 2068规范不允许客户端在重定向时改变请求的方法,但是很多现存的浏览器在收到302响应时,直接使用GET方式访问在Location中规定的URI,而无视原先请求的方法。[2]因此状态码303被添加了进来,用以明确服务器期待客户端进行何种反应。[3]
根据RFC 2616定义:
客户端请求:
POST /blog/comment HTTP/1.1
Host: www.example.com
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
服务器回应:
HTTP/1.1 303 See Other
Location: http://www.example.org/view-comment.asp
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.